package com.mm.fam.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;


@TableName(value = "gw_gateway")
public class Gateway extends Model<Gateway> {
	/**
	 * 网关id
	 */
	@TableId(value = "gateway_id", type = IdType.AUTO)
	private Integer gatewayId;
	/**
	 * 网关名称
	 */
	private String gatewayName;
	/**
	 * 网关描述
	 */
	private String gatewayDescription;
	/**
	 * 实现类
	 */
	private String implementClassName;
	/**
	 * 网关类型
	 */
	private Integer gatewayType;
	/**
	 * 网关适配器类型
	 */
	private Integer gatewayAdapterType;
	/**
	 * 目标节点
	 */
	private Integer targetNodeId;
	/**
	 * ctp设置信息
	 */
	private CtpSetting ctpSetting;
	/**
	 * ib设置信息
	 */
	private IbSetting ibSetting;
	/**
	 * 连接状态
	 */
	private Integer status;
	/**
	 * 版本
	 */
	private Long version;


	public Integer getGatewayId() {
		return gatewayId;
	}

	public void setGatewayId(Integer gatewayId) {
		this.gatewayId = gatewayId;
	}

	public String getGatewayName() {
		return gatewayName;
	}

	public void setGatewayName(String gatewayName) {
		this.gatewayName = gatewayName;
	}

	public String getGatewayDescription() {
		return gatewayDescription;
	}

	public void setGatewayDescription(String gatewayDescription) {
		this.gatewayDescription = gatewayDescription;
	}

	public String getImplementClassName() {
		return implementClassName;
	}

	public void setImplementClassName(String implementClassName) {
		this.implementClassName = implementClassName;
	}

	public Integer getGatewayType() {
		return gatewayType;
	}

	public void setGatewayType(Integer gatewayType) {
		this.gatewayType = gatewayType;
	}

	public Integer getGatewayAdapterType() {
		return gatewayAdapterType;
	}

	public void setGatewayAdapterType(Integer gatewayAdapterType) {
		this.gatewayAdapterType = gatewayAdapterType;
	}

	public Integer getTargetNodeId() {
		return targetNodeId;
	}

	public void setTargetNodeId(Integer targetNodeId) {
		this.targetNodeId = targetNodeId;
	}

	public CtpSetting getCtpSetting() {
		return ctpSetting;
	}

	public void setCtpSetting(CtpSetting ctpSetting) {
		this.ctpSetting = ctpSetting;
	}

	public IbSetting getIbSetting() {
		return ibSetting;
	}

	public void setIbSetting(IbSetting ibSetting) {
		this.ibSetting = ibSetting;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}



	public static class IbSetting {
		// 连接地址
		private String host;
		// 连接端口
		private int port;
		// 客户端ID
		private int clientId;

		public String getHost() {
			return host;
		}

		public void setHost(String host) {
			this.host = host;
		}

		public int getPort() {
			return port;
		}

		public void setPort(int port) {
			this.port = port;
		}

		public int getClientId() {
			return clientId;
		}

		public void setClientId(int clientId) {
			this.clientId = clientId;
		}
	}
}
